package org.shiro.config.shiro;

import org.apache.shiro.authc.SimpleAuthenticationInfo;
import org.apache.shiro.subject.PrincipalCollection;
import org.apache.shiro.util.ByteSource;

import java.io.Serializable;

/**
 * 用户身份信息和凭证保存实现类
 *
 * @author LiKun
 * @date 2021/11/5 23:15
 */
public class ShiroSimpleAuthenticaInfo extends SimpleAuthenticationInfo implements Serializable {
    public ShiroSimpleAuthenticaInfo() {
    }

    public ShiroSimpleAuthenticaInfo(Object principal, Object credentials, String realmName) {
        super(principal, credentials, realmName);
    }

    public ShiroSimpleAuthenticaInfo(Object principal, Object hashedCredentials, ByteSource credentialsSalt, String realmName) {
        super(principal, hashedCredentials, credentialsSalt, realmName);
    }

    public ShiroSimpleAuthenticaInfo(PrincipalCollection principals, Object credentials) {
        super(principals, credentials);
    }

    public ShiroSimpleAuthenticaInfo(PrincipalCollection principals, Object hashedCredentials, ByteSource credentialsSalt) {
        super(principals, hashedCredentials, credentialsSalt);
    }
}
